package com;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

@SpringBootApplication
@EnableAsync
@EnableScheduling
@MapperScan("com.lg.mapper")
public class TimeyStartup {

	
	public synchronized static void main(String[] args) {
		
		SpringApplication.run(TimeyStartup.class, args);

//		ThreadPoolExecutor threadPoolExecutor =
//				new ThreadPoolExecutor(5, 100, 30, TimeUnit.SECONDS, new LinkedBlockingQueue(10000));
//
//		for (int i = 0; i < 100; i++) {
//
//			threadPoolExecutor.execute(() -> System.out.println("xxxxxxxxxx"));
//		}



	}
	
}
